From 20355faa049684b70bbef028da1bc0e8cb41d311 Mon Sep 17 00:00:00 2001 From: Bo YU Date: Sun, 10 Dec 2023 17:21:17 +0800 Subject: [PATCH] add loong64 build target Author: Bo YU --- debian/changelog | 8 ++++++++ debian/control | 2 +- .../patches/121_add_support_for_loong64.patch | 20 +++++++++++++++++++ debian/patches/series | 1 + 4 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 debian/patches/121_add_support_for_loong64.patch diff --git a/debian/changelog b/debian/changelog index bfb958f18..05b566dd4 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +vtk9 (9.1.0+really9.1.0+dfsg2-8) unreleased; urgency=medium + + * Team upload. + * Add support for loongarch64. Thanks to Dandan Zhang + . (Closes: #1054471) + + -- Bo YU Tue, 24 Oct 2023 14:35:29 +0800 + vtk9 (9.1.0+really9.1.0+dfsg2-7) unstable; urgency=medium * Team upload. diff --git a/debian/control b/debian/control index 052ac0889..a3bbb67f1 100644 --- a/debian/control +++ b/debian/control @@ -159,7 +159,7 @@ Description: VTK libraries that use VTK. Package: libvtk9-java -Architecture: amd64 arm64 armel armhf i386 mips64el mipsel ppc64el s390x alpha ia64 m68k powerpc ppc64 riscv64 sh4 sparc64 x32 +Architecture: amd64 arm64 armel armhf i386 loong64 mips64el mipsel ppc64el s390x alpha ia64 m68k powerpc ppc64 riscv64 sh4 sparc64 x32 Section: java Depends: ${java:Depends}, ${misc:Depends}, diff --git a/debian/patches/121_add_support_for_loong64.patch b/debian/patches/121_add_support_for_loong64.patch new file mode 100644 index 000000000..bbee00572 --- /dev/null +++ b/debian/patches/121_add_support_for_loong64.patch @@ -0,0 +1,20 @@ +Description: add support for loongarch64 +Upstream: https://gitlab.kitware.com/seanm/vtk/-/commit/886b536a0d0bb3694951e09169a52896d585c517 +Author: Dandan Zhang + +--- +Last-Update: 2023-10-24 + +--- a/Utilities/KWIML/vtkkwiml/include/kwiml/abi.h ++++ b/Utilities/KWIML/vtkkwiml/include/kwiml/abi.h +@@ -407,6 +407,10 @@ + #elif defined(__hppa) || defined(__hppa__) + # define KWIML_ABI_ENDIAN_ID KWIML_ABI_ENDIAN_ID_BIG + ++/* LoongArch */ ++#elif defined(__loongarch64) ++# define KWIML_ABI_ENDIAN_ID KWIML_ABI_ENDIAN_ID_LITTLE ++ + /* Motorola 68k */ + #elif defined(__m68k__) || defined(M68000) + # define KWIML_ABI_ENDIAN_ID KWIML_ABI_ENDIAN_ID_BIG diff --git a/debian/patches/series b/debian/patches/series index 591aab3da..0797cf1a4 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -13,3 +13,4 @@ gcc-13.patch 99_fix_ftbfs.patch 110_vtk9_netcdf.patch 120_fix_shader_crash.patch +121_add_support_for_loong64.patch -- 2.30.2